Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var e = require("../@babel/runtime/helpers/classCallCheck"), t = require("../@babel/runtime/helpers/createClass"), r = require("../@babel/runtime/helpers/inherits"), a = require("../@babel/runtime/helpers/createSuper"), i = function(i) {
    r(n, i);
    var u = a(n);
    function n() {
        return e(this, n), u.apply(this, arguments);
    }
    return t(n, [ {
        key: "getSelectionList",
        value: function(e) {
            var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10, r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0;
            return this.request({
                url: "/market/activity/list",
                data: {
                    pageNum: e,
                    pageSize: t,
                    drawType: r
                },
                method: "post"
            });
        }
    }, {
        key: "getFinishedList",
        value: function(e) {
            var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10;
            return this.request({
                url: "/market/activity/endList",
                data: {
                    pageNum: e,
                    pageSize: t
                },
                method: "post"
            });
        }
    }, {
        key: "getWinnerList",
        value: function(e, t) {
            var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 10;
            return this.request({
                url: "/market/activity/drawExchangeMember/".concat(e),
                data: {
                    pageNum: t,
                    pageSize: r
                },
                method: "post"
            });
        }
    }, {
        key: "selectionDetails",
        value: function(e) {
            return this.request({
                url: "/market/activity/marketDrawInfo/".concat(e)
            });
        }
    }, {
        key: "simpleDetails",
        value: function(e) {
            return this.request({
                url: "/market/activity/marketDrawSimpleInfo/".concat(e)
            });
        }
    }, {
        key: "subscribe",
        value: function(e) {
            return this.request({
                url: "/market/activity/subscribe",
                method: "post",
                data: {
                    marketDrawId: e
                }
            });
        }
    }, {
        key: "getExtraChip",
        value: function(e) {
            return this.request({
                url: "/market/activity/getExtraChip",
                method: "post",
                data: {
                    marketDrawId: e
                }
            });
        }
    }, {
        key: "signDraw",
        value: function(e) {
            return this.request({
                url: "/market/activity/drawSign",
                method: "post",
                data: {
                    marketDrawId: e
                }
            });
        }
    }, {
        key: "wishDraw",
        value: function(e) {
            return this.request({
                url: "/market/activity/wishExchange",
                method: "post",
                data: {
                    marketDrawId: e
                }
            });
        }
    }, {
        key: "followDraw",
        value: function(e) {
            return this.request({
                url: "/market/activity/follow",
                method: "post",
                data: {
                    marketDrawId: e
                }
            });
        }
    }, {
        key: "followXiaoHongShu",
        value: function(e) {
            return this.request({
                url: "/market/activity/followXiaoHongShu",
                method: "post",
                data: {
                    marketDrawId: e
                }
            });
        }
    }, {
        key: "browseDraw",
        value: function(e) {
            return this.request({
                url: "/market/activity/browsePages",
                method: "post",
                data: {
                    marketDrawId: e
                }
            });
        }
    }, {
        key: "helpDraw",
        value: function(e, t) {
            return this.request({
                url: "/market/activity/shareCaptchaHelp",
                method: "post",
                data: {
                    activityId: e,
                    shareMemberId: t
                }
            });
        }
    }, {
        key: "queryHelpInfo",
        value: function(e, t) {
            return this.request({
                url: "/market/activity/shareCaptchaHelpInfo",
                method: "post",
                data: {
                    activityId: e,
                    shareMemberId: t
                }
            });
        }
    }, {
        key: "bindInvertOrder",
        value: function(e, t) {
            return this.request({
                url: "/market/activity/bindInvertOrder",
                method: "post",
                data: {
                    marketDrawId: e,
                    helperMemberId: t
                }
            });
        }
    }, {
        key: "createOrder",
        value: function(e, t) {
            return this.request({
                url: "/market/activity/insertMarketOrder",
                method: "post",
                data: {
                    marketDrawId: e,
                    addressId: t
                }
            });
        }
    }, {
        key: "payZero",
        value: function(e) {
            return this.request({
                url: "/market/activity/marketPayByZero/".concat(e),
                method: "post",
                data: {}
            });
        }
    }, {
        key: "pay",
        value: function(e, t) {
            return this.request({
                url: "/ChinaUms/marketDrawPay/".concat(e, "/").concat(t),
                method: "post",
                data: {}
            });
        }
    }, {
        key: "cancelPay",
        value: function(e) {
            return this.request({
                url: "/market/activity/cancel/".concat(e),
                method: "post",
                data: {}
            });
        }
    } ]), n;
}(require("./_http").HTTP);

exports.default = i;